package com.etime.perfectschool.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etime.perfectschool.pojo.SchoolNews;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface SchoolNewsMapper extends BaseMapper<SchoolNews> {
   //查询全部新闻
   Page<SchoolNews> getAllSchoolNews(IPage<SchoolNews> iPage);
   //发布新闻
   int addSchoolNews(SchoolNews schoolNews);
   //点赞功能




}
